package utils.global.gray;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;
import utils.global.UtilsConfig;

@ConditionalOnProperty(
        value = "utils.limitflow.enabled",
        havingValue = "true"
)
@EnableConfigurationProperties(GrayProperties.class)
@Import(GrayAop.class)
@Slf4j
public class GrayConfig {
    public GrayConfig() {
        log.info(String.format(UtilsConfig.printInfo, "gray"));
    }
}
